<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <!-- <p v-bind:style="{width: '100px', height: '100px'}"></p> -->
    <!-- <p :style="styleObj">标签内容</p> -->

    <p style="width: 100px" :style="styleObj"></p>
  </div>
  <script src="lib/vue.js"></script>
  <script>
    var vm = new Vue({
      el: '#app',
      data: {
        styleObj: {
          // width: '200px',
          height: '200px',
          backgroundColor: 'red',
          'font-size': '30px'
        }
      }
    });
  </script>
</body>
</html>